home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 49
/
Aminet 49 (2002)(GTI - Schatztruhe)[!][Jun 2002].iso
/
Aminet
/
dev
/
gui
/
Feelin.lha
/
Feelin
/
Groups.e
< prev
next >
Wrap
Text File
|
2002-03-14
|
3KB
|
115 lines
OPT PREPROCESS
MODULE 'feelin','libraries/feelin'
PROC main()
DEF c,w
IF feelinbase := OpenLibrary('feelin.library',FV_VERSION)
c := ClientObject,
Child, w := WindowObject, FA_Window_Title,'Feelin : Groups',
Child, VGroup,
Child, HGroup, GroupFrame, FA_Frame_Title, 'Group Types', FA_Group_SameSize,TRUE,
Child, HGroup, GroupFrame, FA_Frame_Title, 'Horizontal',
Child, rectObj(),
Child, rectObj(),
Child, rectObj(),
End,
Child, VGroup, GroupFrame, FA_Frame_Title, 'Vertical',
Child, rectObj(),
Child, rectObj(),
Child, rectObj(),
End,
Child, VGroup, GroupFrame, FA_Frame_Title, 'Array',
Child, HGroup,
Child, rectObj(),
Child, rectObj(),
Child, rectObj(),
End,
Child, HGroup,
Child, rectObj(),
Child, rectObj(),
Child, rectObj(),
End,
Child, HGroup,
Child, rectObj(),
Child, rectObj(),
Child, rectObj(),
End,
End,
End,
Child, VGroup,
Child, HGroup, GroupFrame, FA_Frame_Title, 'Different Weights',
Child, textObj( '25 kg',[FA_Weight, 25, NIL]),
Child, textObj( '50 kg',[FA_Weight, 50, NIL]),
Child, textObj( '75 kg',[FA_Weight, 75, NIL]),
Child, textObj('100 kg',[FA_Weight,100, NIL]),
End,
Child, HGroup, GroupFrame, FA_Frame_Title, 'Fixed & Variable Sizes',
Child, textObj('fixed',[FA_FixedWidth,TRUE, NIL]),
Child, textObj('free'),
Child, textObj('fixed',[FA_FixedWidth,TRUE, NIL]),
Child, textObj('free'),
Child, textObj('fixed',[FA_FixedWidth,TRUE, NIL]),
End,
Child, HGroup, GroupFrame, FA_Frame_Title, 'Relative Sizes', FA_Group_RelSizing,TRUE,
Child, textObj('1'),
Child, textObj('12'),
Child, textObj('123'),
Child, textObj('1234'),
Child, textObj('12345'),
End,
Child, HGroup, GroupFrame, FA_Frame_Title, 'Same Width', FA_Group_SameWidth,TRUE,
Child, textObj('1'),
Child, textObj('12'),
Child, textObj('123'),
Child, textObj('1234'),
End,
End,
End,
End,
End
IF c
F_DoA(c,FM_Notify,[FA_Client_Signal,$1000,FV_Notify_Self,2,FM_Client_ReturnID,FV_Client_Quit])
F_DoA(w,FM_Notify,[FA_Window_CloseRequest,TRUE,FV_Notify_Client,2,FM_Client_ReturnID,FV_Client_Quit])
F_Set(w,FA_Window_Open,TRUE)
WHILE F_DoA(c,FM_Client_WaitEvent,NIL) <> FV_Client_Quit DO NOP
F_DisposeObj(c)
ENDIF
CloseLibrary(feelinbase)
ELSE
WriteF('Unable to open feelin.library\n')
ENDIF
ENDPROC
PROC textObj(name,tags=NIL)
RETURN TextObject,
DontChain,
FA_FixedHeight, TRUE,
TextFrame,
TextBack,
FA_Text, name,
FA_Text_PreParse, '`c',
TAG_MORE, tags,
End
ENDPROC
PROC rectObj()
RETURN AreaObject,
DontChain,
TextFrame,
TextBack,
End
ENDPROC